package com.jhgsys.internal.sypq.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 * 项目与经理对应表(一对多) Entity
 *
 * @author ganjun
 * @date 2024-11-15 17:34:09
 */
@Data
@TableName("sypq_project_manager")
public class ProjectManager extends BaseEntity implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    //@TableField("id")
    //@NotNull(message = "{required}")
    //private Integer id;

    /**
     * 项目编码
     */
    @TableField("project_code")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String projectCode;

    /**
     * 经理对应用户id
     */
    @TableField("user_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String userId;

}